<Query Kind="Program" />

void Main()
{
	Singleton instance1 = Singleton.GetInstance();
	Singleton instance2 = Singleton.GetInstance();
	
	Console.WriteLine(instance1.GetHashCode());
	Console.WriteLine(instance2.GetHashCode());
}

class Singleton{
	private static Singleton _instance = null;
	
	private Singleton(){
		
	}
	
	public static Singleton GetInstance(){
		if(_instance == null){
			_instance = new Singleton();
		}
		return _instance;
	}
	
}